package com.lvyq.repository.pasture;

import com.lvyq.model.pasture.PastureFeeding;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface PastureFeedingRepository extends MongoRepository<PastureFeeding,String> {

    List<PastureFeeding> findByOpenIdAndHabitationType(String openId,Integer habitationType);
    List<PastureFeeding> findByOpenIdAndTypeAndGoodsName(String openId,Integer type,String goodName);
    List<PastureFeeding> findByOpenId(String openId);

}
